package week3;

/**
 * Created by dell on 2017/3/9.
 */
public class IrregularArray {
    public static void main(String[] args){
        int[][] arr = new int[2][];
        arr[0] = new int[] {1, 2, 3, 4, 5};
        arr[1] = new int[] {1, 2, 3};
        for(int[] row : arr ){ //从第一行到第二行
            for(int value : row){ //每一行从第一个元素到最后一个元素
                System.out.printf("%2d",value);
            }
            System.out.println();
        }
    }
}
